<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가 
?>

<link rel="stylesheet" href="<?=$mwus_skin_path?>/style.css" type="text/css"/>

<style type="text/css">
#us_body { background:url(<?=$mwus_skin_path?>/img/side_bg.gif) repeat-y; width:950px; }
#us_group2 { float:left; width:170px; }
#us_group2 ul { margin:0; padding:0; list-style:none; }
#us_group2 ul li { margin:0; padding:0; float:left; width:170px; height:30px; }
#us_group2 ul li { background:url(<?=$mwus_skin_path?>/img/group_bg.gif);}
#us_group2 ul li a { color:#fff; font-weight:bold; font-size:13px; font-family:dotum; letter-spacing:-1px; }
#us_group2 ul li a { float:left; width:170px; height:30px; margin:0; padding:0; }
#us_group2 ul li a div { padding:7px 0 0 20px; }
#us_group2 ul li.selected { height:40px; background:url(<?=$mwus_skin_path?>/img/group_selected.gif); }
#us_group2 ul li.selected a { color:#2F6DAC; font-size:14px; }
#us_group2 ul li.selected a div { padding:12px 0 0 20px; }
</style>

<div id="us_container">

<div id="us_head">
<div id="us_form">
    <div class="logo"><a href="<?=$g4[path]?>"><img src="<?=$mwus_skin_path?>/img/mw_logo.gif"></a></div>
    <form name="fsearch" method="get" action="<?=$_SERVER[PHP_SELF]?>">
    <input type="hidden" name="gr_id" value="<?=$gr_id?>">
    <div class="us_input_box"><input type="text" name="stx" class="us_input" itemname="검색어" value="<?=$stx?>"></div>
    <input type="submit" class="us_button" value="검색" onfocus="this.blur()">
    <? if ($is_admin == "super") { ?>
        <input type="button" class="us_button" value="관리자" onclick="win_open('admin.php','us_admin_win','width=800,height=600');">
    <? } ?>
    </form>

</div>
</div>

<div id="us_body">

<div id="us_group2">
<ul>
    <? if (!$gr_id) $class="class=\"selected\""; else $class=""; ?>
    <li <?=$class?>><a href="<?=$mwus[path]?>/?stx=<?=$encode_stx?>"><div>통합검색</div></a></li>
    <? if (is_array($group_info)) { ?>
    <? foreach ($group_info as $g) { ?>
    <? if ($gr_id == $g[gr_id]) $class="class=\"selected\""; else $class=""; ?>
    <li <?=$class?>><a href="<?=$mwus[path]?>/?gr_id=<?=$g[gr_id]?>&stx=<?=$encode_stx?>"><div><?=$g[gr_subject]?></div></a></li>
    <? } } ?>
</ul>
</div>

